import { request } from "./request";
const shopMallApi = {
    getGoodsList: (params: any) => {
        return request({
            params,
            url: '/jsGoods/manage/findGoods',
            method: 'get',
        })
    },
    findAuditGoods: (params: any) => {
        return request({
            params,
            url: '/jsGoods/manage/findAuditGoods',
            method: 'get',
        })
    },
    getClassifyList: (params: any) => {
        return request({
            params,
            url: '/jsGoodsClassify/findGoodsClassify',
            method: 'get',
        })
    },
    uploadClassify: (data: any) => {
        return request({
            data,
            url: '/jsGoodsClassify/addGoodsClassify',
            method: 'post',
        })
    },
    getBannerList: (params: any) => {
        return request({
            params,
            url: '/jsBanner/manage/findBanner',
            method: 'get',
        })
    },
    addBanner: (data: any) => {
        return request({
            data,
            url: `/jsBanner/manage/addBanner`,
            method: 'post',
        })
    },
    addGoods: (data: any) => {
        return request({
            data,
            url: `/jsGoods/manage/addGoods`,
            method: 'post',
        })
    },
    putGoodsAuth: (data: any) => {
        return request({
            data,
            url: `/jsGoods/manage/submitAudit`,
            method: 'put',
        })
    },
    abutmentAudit: (data: any) => {
        return request({
            data,
            url: `/jsGoods/manage/goodsAudit`,
            method: 'put',
        })
    },
    goodsShelf: (data: any) => {
        return request({
            data,
            url: `/jsGoods/manage/goodsShelf`,
            method: 'put',
        })
    },
    deleteResourceAbutment: (id: string) => {
        return request({
            url: `/jsGoods/manage/removeGoods/${id}`,
            method: 'delete',
        })
    },
    getHotWordsList: (params: any) => {
        return request({
            params,
            url: '/jsHotWord/manage/findHotWord',
            method: 'get',
        })
    },
    addHotWords: (data: any) => {
        return request({
            data,
            url: `/jsHotWord/manage/addHotWord`,
            method: 'post',
        })
    },
    deleteHotWords: (id: string) => {
        return request({
            url: `/jsHotWord/manage/removeHotWord/${id}`,
            method: 'delete',
        })
    },
    getOrderList: (params: any) => {
        return request({
            params,
            url: '/jsOrderInfo/manage/findOrderInfo',
            method: 'get',
        })
    },
    deliverGoods: (data: any) => {
        return request({
            data,
            url: `/jsOrderInfo/manage/deliverGoods`,
            method: 'post',
        })
    },
    findOrderDetailsInfo: (params: any) => {
        return request({
            params,
            url: '/jsOrderInfo/manage/findOrderDetailsInfo',
            method: 'get',
        })
    },
    auditRefundApplication: (data: any) => {
        return request({
            data,
            url: `/jsRefundApplication/manage/auditRefundApplication`,
            method: 'post',
        })
    },
    rejectRefund: (params: any) => {
        return request({
            params,
            url: `/jsRefundApplication/manage/rejectRefund`,
            method: 'get',
        })
    },
    confirmReceiveAndRefund: (params: any) => {
        return request({
            params,
            url: `/jsRefundApplication/manage/confirmReceiveAndRefund`,
            method: 'get',
        })
    },
}
export default shopMallApi